import request from "@/plugins/axios";
// 列表
export function listApi(data) {
  return request({
    url: "/admin/role/index",
    method: "post",
    data,
  });
}
//
export function addApi(data) {
  return request({
    url: "/admin/role/create",
    method: "post",
    data,
  });
}
export function saveApi(data) {
  return request({
    url: "/admin/role/save",
    method: "post",
    data,
  });
}
// 修改角色状态
export function stateApi(data) {
  return request({
    url: "/admin/role/state",
    method: "post",
    data,
  });
}
//删除
export function delApi(data) {
  return request({
    url: "/admin/role/delete",
    method: "post",
    data,
  });
}
// 获取角色授权
export function authReadApi(data) {
  return request({
    url: "/admin/role/authRead",
    method: "post",
    data,
  });
}
// 设置角色授权
export function authSaveApi(data) {
  return request({
    url: "/admin/role/authSave",
    method: "post",
    data,
  });
}
